﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BatchAddFavorite.aspx.cs"
    EnableEventValidation="true" Inherits="LDSP.UI.Admin.BatchAddFavorite" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>批量导入</title>
    <link type="text/css" href="../../../styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../../Scripts/calendar.js"></script>
    <style type="text/css">
        .mngDetail
        {
            height: 55px;
            width: 988px;
        }
        .style1
        {
            width: 127px;
        }
        .style2
        {
            text-align: left;
            vertical-align: top;
            width: 84%;
            height: 88px;
        }
        .style3
        {
            height: 67px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="pnl_script" runat="server" RenderMode="Inline">
    </asp:UpdatePanel>
    <div class="mngTitle">
        <span class="mngEmphasis">批量添加适用法规</span>
    </div>
    <div>
        <table class="mngDetail">
            <tr>
                <td class="style1">
                    法规/标准列表文件:
                </td>
                <td class="itemValue">
                    <asp:FileUpload ID="fuldCodification" runat="server" Width="684px" />
                    <asp:Button ID="btnDownloadTemplate" runat="server" OnClick="btnDownloadTemplate_Click"
                        Text="下载模板" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                </td>
                <td class="itemValue">
                    <asp:Button ID="btn_check" runat="server" CssClass="mngBtn" OnClick="btn_check_Click"
                        Text="添加至适用" />
                </td>
            </tr>
        </table>
    </div>
    <div class="mngList">
        <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" OnRowDataBound="grd_list_RowDataBound"
            BackColor="#666699" BorderColor="#999999" CellPadding="3" GridLines="Vertical"
            Width="100%">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chb" runat="server" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                </asp:TemplateField>
                <asp:BoundField HeaderText="序号" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField DataField="name" HeaderText="法规/标准名称"></asp:BoundField>
                <asp:BoundField DataField="isAdded" HeaderText="是否成功" ItemStyle-Width="70px"></asp:BoundField>
                <asp:BoundField DataField="type" HeaderText="类型" ItemStyle-Width="70px"></asp:BoundField>
                <asp:BoundField DataField="name_platform" HeaderText="法规/标准名称（平台）" ItemStyle-Width="250px">
                </asp:BoundField>
                <asp:BoundField DataField="isExactlyMatch" HeaderText="是否精确匹配" ItemStyle-Width="90px" />
            </Columns>
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <HeaderStyle CssClass="gridlisthead" ForeColor="White" />
            <AlternatingRowStyle BackColor="#DCDCDC" />
        </asp:GridView>
        <asp:Button ID="btn_SendMail" runat="server" CssClass="mngBtn" Text="通知系统管理员" OnClick="btn_SendMail_Click" />
        <table>
            <tr class="itemValue">
                <td class="style3">
                    <br />
                    <asp:Image ID="Image1" runat="server" Height="10" Width="10" ImageUrl="~/Images/red.png" />
                    &nbsp;代表未添加成功。<br />
                    <br />
                    <asp:Image ID="Image2" runat="server" Height="10" Width="10" ImageUrl="~/Images/yellow.png" />
                    &nbsp;代表法规添加成功，是模糊匹配的结果。<br />
                    <br />
                    <asp:Image ID="Image3" runat="server" Height="10" Width="10" ImageUrl="~/Images/green.png" />
                    &nbsp;代表法规添加成功且精确匹配。<br />
                    <br />
                </td>
            </tr>
            <tr>
                <td class="itemValue">
                    注：<br />
                    <br />
                    1)&nbsp; 要检查的法规/标准列表文件，应该是xls格式的Excel文件，且要检查的法规列表在此Excel的第一个tab。<br />
                    2)&nbsp; 可点击“模板下载”，得到最新的模板文件。<br />
                    3)&nbsp; 若某法规检查出不存在系统中，可能是Excel中输入的法规/标准名称， 跟系统中对应的法规/标准名称不完全一致，比如名称中含空格，或者中英文的书名号等，需要进一步确认。
                    <br />
                    4)&nbsp; 若某法规不存在，可联系管理员添加，管理员E-mail: pablo.tao@dowann.com
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
